package com.entity;

import com.ymx.darling.bean.annotation.Column;
import com.ymx.darling.bean.annotation.Entity;
import com.ymx.darling.executor.mapping.relation.annotation.RelationOneToOne;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import java.io.Serializable;

/**
 * @author 爱Java的小于
 */
@Data
@Entity(table = "orders")
@FieldNameConstants
public class Orders implements Serializable {
	private long id;
	private long productId;
	private String userId;
	private String createTime;
	private int tId;
	private String updateTime;
	@Column(isLogicDelete = true)
	private int logic;
	@RelationOneToOne(selfField = "productId", targetField = "id")
	private Product product;

	private User user;

    public Orders(){}

}
